package com.project.mapper;

import com.project.bean.EmployeeBean;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IEmployeeMapper {
    /**
     * 按部門查询员工
     * @param deptId 部门ID
     * @return 员工集合
     */
    @Select("select * from t_employee where fk_deptId=#{deptId}")
    @ResultMap("employeeMap")
    public List<EmployeeBean> findByDept(int deptId);
}
